package com.fhz.shop.ui.mine;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import com.fhz.shop.callback.ApiResponse;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;


@HiltViewModel
public class MineViewModel extends ViewModel {

    @Inject
    MineRepository mMineRepository;

    @Inject
    public MineViewModel() {
    }


    public LiveData<ApiResponse<String>> getQiNiuToken(){
        return mMineRepository.getQiNiuToken();
    }

    public LiveData<ApiResponse<String>> updateHeadImage( String nickname,  String headImg){
        return mMineRepository.updateHeadImage(nickname, headImg);
    }

}